//
// Created by kepeiyang on 2021/2/26.
//

#ifndef SERVICE_RESDATA_H
#define SERVICE_RESDATA_H
#include <iostream>
#include <string>

using std::string;
class ResData {
public:
    string resp_code; //err or ok
    string resp_cmd;    //请求的cmd，原路返回
    string resp_data; //ret data

    ResData(){}
    string toString(){
        return "{ \"resp_code\":" + resp_code +
                ", \"resp_cmd\":\"" + resp_cmd + "\"" +
                ", \"resp_data\": {" + resp_data + "}" +
               "}\n";
    }
};


#endif //SERVICE_RESDATA_H
